home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Purity / Purity #22 (1994-01-19)(Diesel)(DE)[WB].zip / Purity #22 (1994-01-19)(Diesel)(DE)[WB].adf / PPPClone / PP.lib < prev    next >
Text File  |  1994-01-17  |  2KB  |  70 lines

  1.  
  2.  
  3. {
  4.   Include-File der powerpacker.library V35
  5.   für Kickpascal.
  6. }
  7.  
  8. {$if not def EXEC_LISTS_H;incl "exec/lists.h";endif}
  9. {$if not def EXEC_LIBRARIES_H;incl "exec/libraries.h";endif}
  10. {$if not def INTUITION_INTUITION_H;incl "intuition/intuition.h";endif}
  11.  
  12. CONST
  13.    PP_LIB = 1;
  14.    PPNAME = "powerpacker.library";
  15.    PPVERSION = 35;
  16.  
  17.  (* Decrunch-Farben von ppLoadData()
  18.     und ppDecrunchBuffer() *)
  19.    DECR_COL0          =0;
  20.    DECR_COL1          =1;
  21.    DECR_POINTER       =2;
  22.    DECR_SCROLL        =3;
  23.    DECR_NONE          =4;
  24.  
  25.  (* Error-Codes von ppLoadData() *)
  26.    PP_OPENERR         =-1;
  27.    PP_READERR         =-2;
  28.    PP_NOMEMORY        =-3;
  29.    PP_CRYPTED         =-4;
  30.    PP_PASSERR         =-5;
  31.    PP_UNKNOWNPP       =-6;
  32.    PP_EMPTYFILE       =-7;
  33.  
  34.  (* Größe des SpeedUp-Buffers *)
  35.    SPEEDUP_BUFFLARGE  =0;
  36.    SPEEDUP_BUFFMEDIUM =1;
  37.    SPEEDUP_BUFFSMALL  =2;
  38.  
  39.  (* Effizienz der Crunch-Routinen *)
  40.    CRUN_FAST          =0;
  41.    CRUN_MEDIOCRE      =1;
  42.    CRUN_GOOD       =2;
  43.    CRUN_VERYGOOD      =3;
  44.    CRUN_BEST          =4;
  45.  
  46.  (* Ergebnis von ppCrunchBuffer() *)
  47.    PP_CRUNCHABORTED   =0;
  48.    PP_BUFFEROVERFLOW  =-1;
  49.  
  50. VAR PPBase : Ptr;
  51.  
  52. LIBRARY PPBase:
  53. -30: Function ppLoadData(a0:str;d0,d1:long;a1,a2,a3:ptr):long;
  54. -36: Procedure ppDecrunchBuffer(a0,a1,a2:ptr;d0:long);
  55. -42: Function ppCalcChecksum(a0:str):long;
  56. -48: Function ppCalcPasskey(a0:str):long;
  57. -54: Procedure ppDecrypt(a0:ptr;d0,d1:long);
  58. -60: Function ppGetPassword(a0:p_Screen;a1:ptr;d0,d1:long):boolean;
  59. -96: Function ppAllocCrunchInfo(d0,d1:long;a0,a1:ptr):ptr;
  60. -102: Procedure ppFreeCrunchInfo(a0:ptr);
  61. -108: Function ppCrunchBuffer(a0,a1:ptr;d0:long):long;
  62. -114: Function ppWriteDataHeader(d0,d1,d2,d3:long):boolean;
  63. -120: Function ppEnterPassword(a0:p_Screen;a1:ptr):boolean;
  64. -132: Function ppErrorMessage(d0:long):str;
  65. End;
  66.  
  67.  
  68.  
  69.  
  70.